#ifndef RPTREEPARAM_H
#define RPTREEPARAM_H

#include "NDArray.h"

struct RPTreeParam
{
		const CVGreyc::NDArray::CArray<double>& ndArray;
		unsigned int min_size;
		unsigned int maxdepth;
		double c;

		RPTreeParam(const CVGreyc::NDArray::CArray<double>& array,
			    unsigned int min_size,
			    unsigned int maxdepth,
			    double c)
			    : ndArray(array),min_size(min_size), maxdepth(maxdepth), c(c) {}

		~RPTreeParam(){};

		double get( unsigned int i, unsigned int j) const {return ndArray(i,j);}
		unsigned int nrow() const { return ndArray.shape(0); }
		unsigned int ncol() const { return ndArray.shape(1); }
};

#endif
